package pers.qianyu.module.image.exception;


import pers.qianyu.exception.*;

public class ImageException extends LambBaseException {
    private static final long serialVersionUID = -7523475070140311046L;
    private final Integer code;

    public ImageException(ImageErrorCodeEnum errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
